package hotsaucerecipes

class IndexRedirectTagLib {
    def redirectMainPage = {
        if (!session?.user?.admin) {
            response.sendRedirect("${request.contextPath}/recipe/list/")
        }
    }
}